package com.zdp.degisn.pipe_filter.entity;

import com.zdp.degisn.pipe_filter.filter.Filter;
import com.zdp.degisn.pipe_filter.selector.Selector;

/**
 * @author zhengdp
 * @Description
 * @Date 2022/8/28 18:14
 * @Created by zhengdp
 */
public class DefaultContext implements Context{

    private Selector selector;

    public DefaultContext(Selector selector) {
        this.selector = selector;
    }

    @Override
    public boolean match(Filter filter) {
        return selector.match(filter);
    }
}
